package com.etc.springbootssm.entity;

import java.io.Serializable;

/**
 * 
 * @TableName disease
 */
public class Disease implements Serializable {
    /**
     * 
     */
    private Integer diseaseId;

    /**
     * 
     */
    private String diseaseName;
    
    private static final long serialVersionUID = 1L;

    public Disease() {
    }

    public Disease(Integer diseaseId, String diseaseName) {
        this.diseaseId = diseaseId;
        this.diseaseName = diseaseName;
    }

    /**
     * 
     */
    public Integer getDiseaseId() {
        return diseaseId;
    }

    /**
     * 
     */
    public void setDiseaseId(Integer diseaseId) {
        this.diseaseId = diseaseId;
    }

    /**
     * 
     */
    public String getDiseaseName() {
        return diseaseName;
    }

    /**
     * 
     */
    public void setDiseaseName(String diseaseName) {
        this.diseaseName = diseaseName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Disease other = (Disease) that;
        return (this.getDiseaseId() == null ? other.getDiseaseId() == null : this.getDiseaseId().equals(other.getDiseaseId()))
            && (this.getDiseaseName() == null ? other.getDiseaseName() == null : this.getDiseaseName().equals(other.getDiseaseName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDiseaseId() == null) ? 0 : getDiseaseId().hashCode());
        result = prime * result + ((getDiseaseName() == null) ? 0 : getDiseaseName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "Disease{" +
                "diseaseId=" + diseaseId +
                ", diseaseName='" + diseaseName + '\'' +
                '}';
    }
}